<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>benny-sdl-classes: Vec2D Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">benny-sdl-classes
   
   </div>
   <div id="projectbrief">Benny&#39;s assorted SDL game classes. Does exactly what it says on the can.</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('class_vec2_d.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">Vec2D Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Vec2D" -->
<p><code>#include &lt;<a class="el" href="_vec2_d_8h_source.html">Vec2D.h</a>&gt;</code></p>

<p><a href="class_vec2_d-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vec2_d.html#aa3e3abb842bff81c10e8539c1689d578">Vec2D</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor of zero/null vector.  <a href="#aa3e3abb842bff81c10e8539c1689d578"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vec2_d.html#acf083ecb79ef1153a606fb35b377f9d3">Vec2D</a> (double newX, double newY)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor for vector with values.  <a href="#acf083ecb79ef1153a606fb35b377f9d3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vec2_d.html#a3609128b9388f58c9feff47b7c2dccc1">~Vec2D</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_vec2_d.html">Vec2D</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vec2_d.html#ac2f6f4b13ebb48047ff6221be58a955e">operator+=</a> (const <a class="el" href="class_vec2_d.html">Vec2D</a> &amp;other)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds another vector to this one.  <a href="#ac2f6f4b13ebb48047ff6221be58a955e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_vec2_d.html">Vec2D</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vec2_d.html#a3019d889cad0f06b9b825c27a75129b9">operator-=</a> (const <a class="el" href="class_vec2_d.html">Vec2D</a> &amp;other)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Subtracts another vector from this one.  <a href="#a3019d889cad0f06b9b825c27a75129b9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_vec2_d.html">Vec2D</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vec2_d.html#afbd94c526ddab473036a364e77fc0ccc">operator+</a> (const <a class="el" href="class_vec2_d.html">Vec2D</a> &amp;other)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Used to add two vectors.  <a href="#afbd94c526ddab473036a364e77fc0ccc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_vec2_d.html">Vec2D</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vec2_d.html#a4aedacef15cfedcb1bd02d450c64dbf5">operator-</a> (const <a class="el" href="class_vec2_d.html">Vec2D</a> &amp;other)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Used to subtract two vectors.  <a href="#a4aedacef15cfedcb1bd02d450c64dbf5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vec2_d.html#a562d2b2013f9c9de6074b580fd60322a">length</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the length of the vector.  <a href="#a562d2b2013f9c9de6074b580fd60322a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vec2_d.html#a8fa552d3f81b545407818594ba951160">length2</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the squared length of the vector.  <a href="#a8fa552d3f81b545407818594ba951160"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vec2_d.html#a653e51f289c5753e092bfd32b968a660">angle</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the angle the vector is pointing.  <a href="#a653e51f289c5753e092bfd32b968a660"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vec2_d.html#a344eb1026c248d3387e37c8b0d665cb6">get_x</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the x value of the vector.  <a href="#a344eb1026c248d3387e37c8b0d665cb6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vec2_d.html#a847fe3cf2160f1e48c8f706630772da8">get_y</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the y value of the vector.  <a href="#a847fe3cf2160f1e48c8f706630772da8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vec2_d.html#ac916cadb7570a585d2acb717bc5c4932">set</a> (double newX, double newY)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets new values for the vector.  <a href="#ac916cadb7570a585d2acb717bc5c4932"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vec2_d.html#a4b0ad9b4ab63be55a3e2b515f9bf43d1">scale</a> (double multiplier)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Multiplies the length of the vector.  <a href="#a4b0ad9b4ab63be55a3e2b515f9bf43d1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vec2_d.html#a196e11d8fb45d75ba64fbd43550d4913">scale_to</a> (double endLength)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Scales the vector so that it becomes endLength long.  <a href="#a196e11d8fb45d75ba64fbd43550d4913"></a><br/></td></tr>
</table>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="aa3e3abb842bff81c10e8539c1689d578"></a><!-- doxytag: member="Vec2D::Vec2D" ref="aa3e3abb842bff81c10e8539c1689d578" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Vec2D::Vec2D </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructor of zero/null vector. </p>

</div>
</div>
<a class="anchor" id="acf083ecb79ef1153a606fb35b377f9d3"></a><!-- doxytag: member="Vec2D::Vec2D" ref="acf083ecb79ef1153a606fb35b377f9d3" args="(double newX, double newY)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Vec2D::Vec2D </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>newX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>newY</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructor for vector with values. </p>

</div>
</div>
<a class="anchor" id="a3609128b9388f58c9feff47b7c2dccc1"></a><!-- doxytag: member="Vec2D::~Vec2D" ref="a3609128b9388f58c9feff47b7c2dccc1" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Vec2D::~Vec2D </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a653e51f289c5753e092bfd32b968a660"></a><!-- doxytag: member="Vec2D::angle" ref="a653e51f289c5753e092bfd32b968a660" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double Vec2D::angle </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the angle the vector is pointing. </p>
<p>Uses radians. 0 is right, clockwise positive </p>

</div>
</div>
<a class="anchor" id="a344eb1026c248d3387e37c8b0d665cb6"></a><!-- doxytag: member="Vec2D::get_x" ref="a344eb1026c248d3387e37c8b0d665cb6" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double Vec2D::get_x </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the x value of the vector. </p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_vec2_d_a344eb1026c248d3387e37c8b0d665cb6_icgraph.png" border="0" usemap="#class_vec2_d_a344eb1026c248d3387e37c8b0d665cb6_icgraph" alt=""/></div>
<map name="class_vec2_d_a344eb1026c248d3387e37c8b0d665cb6_icgraph" id="class_vec2_d_a344eb1026c248d3387e37c8b0d665cb6_icgraph">
<area shape="rect" id="node3" href="class_particle.html#a7ca72f987d80c7b93db355798a3d9599" title="Empty tick funtion." alt="" coords="155,5,250,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a847fe3cf2160f1e48c8f706630772da8"></a><!-- doxytag: member="Vec2D::get_y" ref="a847fe3cf2160f1e48c8f706630772da8" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double Vec2D::get_y </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the y value of the vector. </p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_vec2_d_a847fe3cf2160f1e48c8f706630772da8_icgraph.png" border="0" usemap="#class_vec2_d_a847fe3cf2160f1e48c8f706630772da8_icgraph" alt=""/></div>
<map name="class_vec2_d_a847fe3cf2160f1e48c8f706630772da8_icgraph" id="class_vec2_d_a847fe3cf2160f1e48c8f706630772da8_icgraph">
<area shape="rect" id="node3" href="class_particle.html#a7ca72f987d80c7b93db355798a3d9599" title="Empty tick funtion." alt="" coords="155,5,250,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a562d2b2013f9c9de6074b580fd60322a"></a><!-- doxytag: member="Vec2D::length" ref="a562d2b2013f9c9de6074b580fd60322a" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double Vec2D::length </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the length of the vector. </p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_vec2_d_a562d2b2013f9c9de6074b580fd60322a_icgraph.png" border="0" usemap="#class_vec2_d_a562d2b2013f9c9de6074b580fd60322a_icgraph" alt=""/></div>
<map name="class_vec2_d_a562d2b2013f9c9de6074b580fd60322a_icgraph" id="class_vec2_d_a562d2b2013f9c9de6074b580fd60322a_icgraph">
<area shape="rect" id="node3" href="class_vec2_d.html#a196e11d8fb45d75ba64fbd43550d4913" title="Scales the vector so that it becomes endLength long." alt="" coords="158,5,277,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a8fa552d3f81b545407818594ba951160"></a><!-- doxytag: member="Vec2D::length2" ref="a8fa552d3f81b545407818594ba951160" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double Vec2D::length2 </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the squared length of the vector. </p>
<p>This function can be used instead of <a class="el" href="class_vec2_d.html#a562d2b2013f9c9de6074b580fd60322a" title="Returns the length of the vector.">length()</a> to avoid a square root function that might not be needed (e.g. for comparision of distances) </p>

</div>
</div>
<a class="anchor" id="afbd94c526ddab473036a364e77fc0ccc"></a><!-- doxytag: member="Vec2D::operator+" ref="afbd94c526ddab473036a364e77fc0ccc" args="(const Vec2D &amp;other)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_vec2_d.html">Vec2D</a> &amp; Vec2D::operator+ </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_vec2_d.html">Vec2D</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Used to add two vectors. </p>

</div>
</div>
<a class="anchor" id="ac2f6f4b13ebb48047ff6221be58a955e"></a><!-- doxytag: member="Vec2D::operator+=" ref="ac2f6f4b13ebb48047ff6221be58a955e" args="(const Vec2D &amp;other)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_vec2_d.html">Vec2D</a> &amp; Vec2D::operator+= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_vec2_d.html">Vec2D</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adds another vector to this one. </p>

</div>
</div>
<a class="anchor" id="a4aedacef15cfedcb1bd02d450c64dbf5"></a><!-- doxytag: member="Vec2D::operator&#45;" ref="a4aedacef15cfedcb1bd02d450c64dbf5" args="(const Vec2D &amp;other)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_vec2_d.html">Vec2D</a> &amp; Vec2D::operator- </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_vec2_d.html">Vec2D</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Used to subtract two vectors. </p>

</div>
</div>
<a class="anchor" id="a3019d889cad0f06b9b825c27a75129b9"></a><!-- doxytag: member="Vec2D::operator&#45;=" ref="a3019d889cad0f06b9b825c27a75129b9" args="(const Vec2D &amp;other)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_vec2_d.html">Vec2D</a> &amp; Vec2D::operator-= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_vec2_d.html">Vec2D</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Subtracts another vector from this one. </p>

</div>
</div>
<a class="anchor" id="a4b0ad9b4ab63be55a3e2b515f9bf43d1"></a><!-- doxytag: member="Vec2D::scale" ref="a4b0ad9b4ab63be55a3e2b515f9bf43d1" args="(double multiplier)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Vec2D::scale </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>multiplier</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Multiplies the length of the vector. </p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_vec2_d_a4b0ad9b4ab63be55a3e2b515f9bf43d1_icgraph.png" border="0" usemap="#class_vec2_d_a4b0ad9b4ab63be55a3e2b515f9bf43d1_icgraph" alt=""/></div>
<map name="class_vec2_d_a4b0ad9b4ab63be55a3e2b515f9bf43d1_icgraph" id="class_vec2_d_a4b0ad9b4ab63be55a3e2b515f9bf43d1_icgraph">
<area shape="rect" id="node3" href="class_vec2_d.html#a196e11d8fb45d75ba64fbd43550d4913" title="Scales the vector so that it becomes endLength long." alt="" coords="155,5,274,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a196e11d8fb45d75ba64fbd43550d4913"></a><!-- doxytag: member="Vec2D::scale_to" ref="a196e11d8fb45d75ba64fbd43550d4913" args="(double endLength)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Vec2D::scale_to </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>endLength</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Scales the vector so that it becomes endLength long. </p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_vec2_d_a196e11d8fb45d75ba64fbd43550d4913_cgraph.png" border="0" usemap="#class_vec2_d_a196e11d8fb45d75ba64fbd43550d4913_cgraph" alt=""/></div>
<map name="class_vec2_d_a196e11d8fb45d75ba64fbd43550d4913_cgraph" id="class_vec2_d_a196e11d8fb45d75ba64fbd43550d4913_cgraph">
<area shape="rect" id="node3" href="class_vec2_d.html#a562d2b2013f9c9de6074b580fd60322a" title="Returns the length of the vector." alt="" coords="173,5,277,32"/><area shape="rect" id="node5" href="class_vec2_d.html#a4b0ad9b4ab63be55a3e2b515f9bf43d1" title="Multiplies the length of the vector." alt="" coords="175,56,275,83"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ac916cadb7570a585d2acb717bc5c4932"></a><!-- doxytag: member="Vec2D::set" ref="ac916cadb7570a585d2acb717bc5c4932" args="(double newX, double newY)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Vec2D::set </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>newX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>newY</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets new values for the vector. </p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_vec2_d_ac916cadb7570a585d2acb717bc5c4932_icgraph.png" border="0" usemap="#class_vec2_d_ac916cadb7570a585d2acb717bc5c4932_icgraph" alt=""/></div>
<map name="class_vec2_d_ac916cadb7570a585d2acb717bc5c4932_icgraph" id="class_vec2_d_ac916cadb7570a585d2acb717bc5c4932_icgraph">
<area shape="rect" id="node3" href="class_particle.html#a82002583c7755640d197ca25f5c5d2aa" title="Particle::set_vel" alt="" coords="169,5,284,32"/><area shape="rect" id="node5" href="class_particle.html#a18b2554bf9293af43bcd0c81f5722b98" title="Particle::set_acceleration" alt="" coords="142,56,311,83"/></map>
</div>
</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>include/<a class="el" href="_vec2_d_8h_source.html">Vec2D.h</a></li>
<li>src/<a class="el" href="_vec2_d_8cpp.html">Vec2D.cpp</a></li>
</ul>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="class_vec2_d.html">Vec2D</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">Generated on Sun Oct 23 2011 04:30:01 for benny-sdl-classes by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
